package com.baike.feign;

import com.baike.data.Result;
import com.baike.feign.fallback.SearchServiceFeignBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "baike-education-search-service",fallback = SearchServiceFeignBack.class)//服务名,找到项目
public interface SearchServiceFeign {

    //推送用户搜索查询 --> 标签名称
    @GetMapping("/search/lessonLabelName")
    Result getLessonLabelName(@RequestParam("lessonLabelName")String lessonLabelName,
                                     @RequestParam(value = "pageNum",required = false)Integer pageNum,
                                     @RequestParam(value = "pageSize",required = false)Integer pageSize);

}
